<template>
  <div style="display: inline-block;margin-right: 5px;">
    <Modal v-model="modal1"
           title="编辑">
      <Row class="label-row" :gutter="16">
        <i-col span="6" style="text-align: right;">手机号：</i-col>
        <i-col span="18">{{ item.PhoneNum }}</i-col>
      </Row>
      <Row class="label-row" :gutter="16">
        <i-col span="6" style="text-align: right;">店铺名称：</i-col>
        <i-col span="18">{{ item.BusinessName }}</i-col>
      </Row>
      <Row class="label-row" :gutter="16">
        <i-col span="6" style="text-align: right;">营业执照号码：</i-col>
        <i-col span="18">{{ item.BusinessLicenseNum }}</i-col>
      </Row>
      <Row class="label-row" :gutter="16">
        <i-col span="6" style="text-align: right;">法人姓名：</i-col>
        <i-col span="18">{{ item.LegalPersonName }}</i-col>
      </Row>
      <Row class="label-row" :gutter="16">
        <i-col span="6" style="text-align: right;">法人身份证号码：</i-col>
        <i-col span="18">{{ item.LegalPersonIDCareNo }}</i-col>
      </Row>
      <Row class="label-row" :gutter="16">
        <i-col span="6" style="text-align: right;">申请时间：</i-col>
        <i-col span="18">{{ item.CreateTime }}</i-col>
      </Row>
      <Row class="label-row" :gutter="16">
        <i-col span="6" style="text-align: right;">注册来源：</i-col>
        <i-col span="18">{{ item.RegistSource }}</i-col>
      </Row>
      <Row class="label-row" :gutter="16">
        <i-col span="6" style="text-align: right;">审核状态：</i-col>
        <i-col span="18">{{ item.IsAgree === 0 ? '未通过' : '通过' }}</i-col>
      </Row>
      <Row class="label-row" :gutter="16">
        <i-col span="6" style="text-align: right;">推荐人：</i-col>
        <i-col span="18">{{ item.RefereeName }}</i-col>
      </Row>
      <Row class="label-row" :gutter="16">
        <i-col span="6" style="text-align: right;">经营种类：</i-col>
        <i-col span="18">{{ item.TypeName }}</i-col>
      </Row>
    </Modal>
  </div>
</template>

<script>
import { getSellerAuditDetail } from '@/api/seller'
export default {
  name: 'edit',
  data () {
    return {
      modal1: false,
      loading: true,
      RecIs: [
        {
          number: 0,
          text: '不推荐'
        },
        {
          number: 1,
          text: '猜你喜欢'
        },
        {
          number: 2,
          text: '可能还喜欢'
        }
      ],
      item: {}
    }
  },
  mounted () {
    this.init()
  },
  methods: {
    init () {
      this.modal1 = false
      this.item = {}
    },
    getItem (id) {
      getSellerAuditDetail({ BusinessApplyID: id }).then(res => {
        if (res.data.success) {
          this.item = res.data.data
        } else {
          this.$Message.info(res.data.msg)
        }
      }).then(() => {
        this.modal1 = true
      })
    }
  }
}
</script>

<style lang="less" scoped>
.label-row {
  height: 32px;
  line-height: 32px;
}
</style>
